<include file="./Tpl/Home/Header.html" />
<link href="/Public/Home/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<script src="/Public/Home/jquery-2.1.1.min.js"></script>
<script src="/Public/Home/bootstrap.min.js?v=3.4.0"></script>
<style type="text/css">
.user{width:97%;margin:0px auto;}
.user-nav a{display:inline-block;float:left;padding:7px 20px;color: #0B72A4;}
.user-nav a.cur{background:#fff;border:1px solid #ddd;border-bottom:0px;}
.user-info{padding:20px 0px;font-size:14px;border:1px solid #ddd;}
.user-info dl{display:block;width:99%;margin:0px auto;zoom:1;overflow:hidden;}
.user-info dl dt,.user-info dl dd{float:left;padding:15px 10px;}
.user-info dl dt{clear:both;width:20%;}
.user-info dl dd{width:70%;}
.user-info dl dd input[type='radio']{margin-left:20px;}
.user-info input[type='text'],.user-info input[type='password']{width:300px;height:30px;line-height:30px;padding:0px 10px;border:1px solid 
#ccc;}
.user-info table{width:100%;border:1px solid #ccc;border-bottom:0px;}
.user-info th,.user-info td{padding:10px 10px;border-bottom:1px solid #ccc;text-align:right;}
.user-info h3{text-indent:15px;padding:15px 0px;}
.sub{display: inline-block;
font-weight: 700;
font-size: 14px;
color: white;
text-align: center;
width: 170px;
height: 32px;
line-height: 32px;
background: #337ab7;
margin-top: 10px;}
.sub:hover{color:#fff;text-decoration:none;}
.user-info .span_1{ color:#E32222; font-size:13px; float:right; position:relative; top:5px;}
</style>
<div class="marketArea clear"> <include file="./Tpl/Home/Left.html" />
  <div class="rightArea">
    <div class="user">
      <div class="user-nav"> <a class="cur" style="background:none repeat scroll 0 0 #ffffff; border-left:1px solid #c3c1c1; border-right:1px solid #c3c1c1; border-top:2px solid #329ddc; color:#329ddc; padding:6px 10px 5px;">账户信息</a>
        <div class="clear"></div>
      </div>
      <style type="text/css">
                .user-info dd span{display:block;height:12px;}
			</style>
      <div class="user-info">
        <form class="form-horizontal m-t" id="xiugai" jump-url="/User/real" method="post" action="/Home/User/realupdate">
          <dl>
            <dt>用户名</dt>
            <dd>{$auth.username|default='<font color=red>没有找到数据！</font>'}</dd>
            <dt>真实姓名</dt>
            <dd><span>
              <notempty name='auth.xm'>{$auth.xm}
			   <input type="hidden" id="xm" name="xm" value="{$auth.xm}" />
                <else/>
                <input type="text" id="xm" name="xm" value="{$auth.xm}" />
                <!--  <span class="span_1">您的真实姓名还未认证</span> -->
              </notempty>
              </span></dd>
            <dt>身份证号</dt>
            <dd><span >
              <notempty name='auth.idnumber'>{$auth.idnumber}
			          <input type="hidden" id="idnumber" name="idnumber"  value="{$auth.idnumber}"/>
                <else/>
                <input type="text" id="idnumber" name="idnumber"  value="{$auth.idnumber}"/>
                <!--  <span class="span_1">您的身份证号还未认证</span> -->
              </notempty>
              </span></dd>
            <dt>邮箱</dt>
            <dd><span>
              <notempty name='auth.email'>{$auth.email}
			     <input type="hidden"  id="email" name="email" value="{$auth.email}" />
                <else/>
                <input type="text"  id="email" name="email" value="{$auth.email}" />
                <!-- <span class="span_1">您的邮箱还未认证</span> -->
              </notempty>
              </span></dd>
            <!--	<dt>支付宝</dt><dd><span ><notempty name='auth.alipay'>{$auth.alipay}<else/><input type="text" id="alipay" name="alipaydes" /><span class="span_1">您的支付宝还未认证</span></notempty></span></dd> -->
            <dt>手机号码</dt>
            <dd><span id="phonedes">
              <notempty name='auth.phone'>{$auth.phone}
                <else/>
                <a href="/Home/User/setpwd">
                <input class="btn btn-info"type="button" value="还未认证马上去认证" name="idnumber" />
                </a></notempty>
              </span></dd>
            <eq name="xinxi" value='2'>
			<dt>提交</dt>
            <dd>
              <input type="submit" id="subbtn" class="btn btn-primary" value="提交信息" />
            </dd>
			</eq>
          </dl>
        </form>
      </div>
    </div>
  </div>
</div>
<script src="/Public/js/jquery.validate.min.js"></script>
<script src="/Public/js/messages_zh.min.js"></script>
<script src="/Public/js/base.js"></script>
<script>
		
	  $("#xiugai").validate({			   
                rules: {
                    xm: {
                        required: true,
					
                    },
                    email: {
                        required: true,
						  email:true 
                    },
					  idnumber: {
                        required: true,
             
                    }
                },
                messages: {
                   xm: {
                        required: "真实姓名不能为空",
					
                    },
                    email: {
                        required: "邮箱地址不能为空",
						 email: "请输入正确格式的邮箱地址",
                    },
					  idnumber: {
                         required: "身份证号不能为空",
						
                    }
                },
				submitHandler:function(form){
					ajax_submit_form(form)
					return false;
				},
				invalidHandler: function() {  //不通过回调 
					  return false; 
				  },
		   
            });
			
    
</script>
<include file="./Tpl/Home/Footer.html" /> 